#-------------------------------------------------
#
# Project created by QtCreator 2018-01-06T15:15:38
#
#-------------------------------------------------
#DEFINES  += D_USE_ICP
DEFINES  += D_USE_VISION_MATCH
DEFINES  += D_USE_AMCL_ADVANCE
DEFINES  += D_USE_INTERNAL_LASER_DRIVER
#DEFINES  += D_USE_LASER_ODOMETRY

QT += core xml

TARGET = RosApi
TEMPLATE = lib

DEFINES += ROSAPI_LIBRARY

CONFIG += staticlib


INCLUDEPATH += ../../include
contains( DEFINES, D_USE_ICP ){
message('TcrControllerByLib use D_USE_ICP')

INCLUDEPATH +=/usr/local/include/vtk-5.10
INCLUDEPATH +=/usr/local/include/pcl-1.7
INCLUDEPATH +=../PclIcp
}

contains( DEFINES, D_USE_VISION_MATCH ){
message('TcrControllerByLib use D_USE_VISION_MATCH')
INCLUDEPATH +=../VisionMatch
}
INCLUDEPATH +=../LaserDriverAbstract
INCLUDEPATH+=/usr/include/mrpt/mrpt-config
INCLUDEPATH+=/usr/include/mrpt/obs/include
INCLUDEPATH+=/usr/include/mrpt/base/include/
INCLUDEPATH +=/usr/include/mrpt/opengl/include
INCLUDEPATH +=/usr/include/eigen3
INCLUDEPATH += /usr/local/include/kdl
INCLUDEPATH+=/usr/local/include/libuvc
INCLUDEPATH +=../LaserDriverSickTim
INCLUDEPATH +=../LaserDriverSickLms
INCLUDEPATH +=../LaserDriverKeli
INCLUDEPATH +=../LaserDriverBeiyang
INCLUDEPATH +=../AmclAdvance
INCLUDEPATH +=../LaserOdometry
INCLUDEPATH += ../../include/
INCLUDEPATH += ../../include/MacroDefine
INCLUDEPATH += ../../include/yaml-cpp
INCLUDEPATH +=../DomParser
LIBS += -L../../lib -lDomParser
INCLUDEPATH +=../MessageLog
LIBS += -L../../lib -lMessageLog

INCLUDEPATH +=../HmiGsoapQt
INCLUDEPATH +=../LaserCalculate


#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS #为什么其它库pro也要定义这个才起作用。


contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
}
contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")

}
contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
}



contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR =/agvwork/AgvFundation/fundation/lib/x86_WINDOWS
#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_windows
MOC_DIR +=../../build/tmpBuildDirectory_windows
OBJECTS_DIR += ../../build/tmpBuildDirectory_windows
RCC_DIR += ../../build/tmpBuildDirectory_windows
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR =/agvwork/AgvFundation/fundation/lib

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory
MOC_DIR +=../../build/tmpBuildDirectory
OBJECTS_DIR += ../../build/tmpBuildDirectory
RCC_DIR += ../../build/tmpBuildDirectory
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR =/agvwork/AgvFundation/fundation/lib-arm

#编译中间文件目录
UI_DIR += ../../build/tmpBuildDirectory_arm
MOC_DIR +=../../build/tmpBuildDirectory_arm
OBJECTS_DIR += ../../build/tmpBuildDirectory_arm
RCC_DIR += ../../build/tmpBuildDirectory_arm
}


HEADERS += \
    rosapi.h

SOURCES += \
    rosapi.cpp



INCLUDEPATH+=/opt/ros/kinetic/include
INCLUDEPATH+=/home/tcr/tcr100_ws/devel/include


#LIBS+= /usr/lib/x86_64-linux-gnu/libboost_thread.so
#LIBS+= /usr/lib/x86_64-linux-gnu/libboost_system.so

#LIBS+= -L/opt/ros/kinetic/lib -lroslib
#LIBS+= -L/opt/ros/kinetic/lib -lrosconsole
#LIBS+= -L/opt/ros/kinetic/lib -lroscpp
#LIBS+= -L/opt/ros/kinetic/lib -lxmlrpcpp
#LIBS+= -L/opt/ros/kinetic/lib -lrospack
#LIBS+= -L/opt/ros/kinetic/lib -lrostime
#LIBS+= -L/opt/ros/kinetic/lib -ltf
#LIBS+= -L/opt/ros/kinetic/lib -ltf2
#LIBS+= -L/opt/ros/kinetic/lib -ltf2_ros
#LIBS+= -L/opt/ros/kinetic/lib -lserial
#LIBS+= -L/opt/ros/kinetic/lib -lroscpp_serialization
#LIBS+= -L/opt/ros/kinetic/lib -lactionlib
#LIBS+= -L/opt/ros/kinetic/lib -lrosbag
#LIBS+= -L/opt/ros/kinetic/lib -lrosconsole_backend_interface
#LIBS+= -L/opt/ros/kinetic/lib -lrosconsole_bridge
#LIBS+= -L/opt/ros/kinetic/lib -lrosconsole_log4cxx
#LIBS+= -L/opt/ros/kinetic/lib -lcpp_common

#environment need to set ROS_MASTER_URI http://127.0.0.1:11311
#and run roscore
#rostopic list
#rostopic echo /odom
